<div class="layui-card">
    <div class="layui-card-body">
        <form class="layui-form p15" method="post" action="{:U('Plugin/basic')}?id={$row.id??''}">
            <table>
                <tr>
                    <th width="80">加载方式</th>
                    <td>
                        <select name="isload">
                            <option value="0" {if condition="$row.isload == 0"}selected="true"{/if}>手动加载</option>
                            <option value="1" {if condition="$row.isload == 1"}selected="true"{/if}>自动加载</option>
                        </select>
                    </td>
                </tr>
                <tr>
                    <th></th>
                    <td>
                        <p class="f12 cl-999">手动加载：需手工在显示插件的页面里放置以下代码&#123;:pluginexec("{$row.code}")&#125;</p>
                        <p class="f12 cl-999">自动加载：插件将自动加载到指定页面里，不选则默认加载到所有前台页面</p>
                    </td>
                </tr>
                <tr>
                    <th>指定页面</th>
                    <td>
                        {foreach $temps as $tinfo}
                        <input type="checkbox" name="loadtemp[]" value="{$tinfo.value}" title="{$tinfo.name}" lay-skin="primary" {$tinfo['ischeck']?'checked':''} />
                        {/foreach}
                    </td>
                </tr>
            </table>
            <div class="mt30 pl100 pb30">
                <button type="submit" class="layui-btn layui-btn-normal w100" lay-submit>确认提交</button>
            </div>
        </form>
    </div>
</div>
